/*
 * @Author: yonggang 
 * @Date: 2021-09-24 16:21:52 
 * @Last Modified by: yonggang
 * @Last Modified time: 2021-09-26 15:10:31
 */
<template>
    <div class="box">
        <el-container>
          <el-aside width="auto">
            <navTemp/>
          </el-aside>
          <el-main style="padding: 0;">
            <el-container class="content">
              <el-header style="background-color:#6782a0;">头部</el-header>
              <el-main>
                <mainTemp/>
              </el-main>
              <el-footer style="background-color:#6782a0;height: 30px;line-height: 30px;">底部</el-footer>
            </el-container>
          </el-main>
        </el-container>
    </div>
</template>

<script>
import navTemp from "/src/views/public/nav"
import mainTemp from "/src/views/public/main"
export default {
    components: {
        navTemp,
        mainTemp,
    },
    data() {
        return {

        };
    },
    computed: {},
    watch: {},
    methods: {},
    created() {},
    mounted() {},
    beforeCreate() {},
    beforeMount() {},
    beforeUpdate() {},
    updated() {},
    beforeDestroy() {},
    destroyed() {},
    activated() {},
    }
</script>
<style scoped>
/* @import url(); 引入公共css类 */
  .box{
      width: 100%;
      height: 100%;
      position: absolute;
  }
  .box>.el-container{
      height: 100%;
      display: flex;
  }
  .el-header, .el-footer {
    background-color: #B3C0D1;
    color: #333;
    text-align: center;
    line-height: 60px;
  }
  
  .el-aside {
    background-color: #D3DCE6;
    color: #333;
    text-align: center;
    line-height: 200px;
  }
  
  .el-container .el-aside {
    background-color: rgb(84, 92, 100);;  
    line-height: 260px;
  }
  .content{
    height: 100%;
    display: flex;
  }
</style>